package com.dzpk.gameserver.net.client;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.serialization.ObjectSerializationCodecFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import somnus.net.LongClient;

public class FacadeClient extends LongClient {

    /**
     * 连接成功发送当前服务器人数到auth
     */
    @Override
    public void onConnectSuccess(IoSession session) {

    }

    protected Logger log = LoggerFactory.getLogger(FacadeClient.class);

    @Override
    public ProtocolCodecFactory getCodecFactory() {
        ObjectSerializationCodecFactory objectCodec = new ObjectSerializationCodecFactory();
        objectCodec.setDecoderMaxObjectSize(8388608);
        return objectCodec;
    }

    @Override
    public String getServerDesc() {
        return "Facade Server";
    }


}
